/**
* @author Ashish Gupta
* CVSSP, University of Surrey
* Copyright (c) 2010 Ashish Gupta
* All rights reserved.
*/
/**
 * 
 */
package uk.ac.surrey.agupta.acquisition;

import java.io.IOException;
import java.util.Iterator;

import uk.ac.surrey.agupta.data.FeatureVector;

/**
 * @author Ashish
 *
 */
public class TestReadSIFTFile {

	/**
	 * @param args
	 * @throws IOException 
	 */
	@SuppressWarnings("unchecked")
	public static void main(String[] args) throws IOException {
		ReadSIFTData dataReader = new ReadSIFTData(args[0]);
		System.out.println(dataReader.getFeatureData().size()+"\n");
		Iterator<FeatureVector> itr = dataReader.getFeatureData().iterator();
		int count = 0;
		while(itr.hasNext()){
			Iterator<Integer> fv = (Iterator<Integer>) itr.next().getFeatureVector().iterator();
			System.out.print((count++) + ":\t");
			while(fv.hasNext()){
				System.out.print(fv.next() + " ");
			}
			System.out.println();
		}
		
	}

}
